Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable AR query caching when grabbing the publishing lock #752

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

svevang
Copy link
Member

@svevang svevang commented Aug 9, 2023

This PR fixes a situation where we can get a stale read via AR query caching when we are probing of the current publishing item and state.

The uniqueness constraints here would prevent a duplicate state transition, but until #752 the publishing attempts could land in an 'error' status because of those constraints.

@svevang svevang changed the title Blocks grabbing the publishing lock are uncached Disable AR query caching when grabbing the publishing lock Aug 9, 2023
@svevang svevang marked this pull request as ready for review August 9, 2023 18:48
Copy link
Member

@cavis cavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@svevang svevang merged commit 09f62a7 into main Aug 10, 2023
1 check passed
@farski farski deleted the query-caching-for-publishing-blocks branch June 7, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants